﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace _18miljard
{
	public class ObjectFormatter
	{
		public static string CurrentIp
		{
			get
			{
				string ip = null;

				if (HttpContext.Current != null)
					if (HttpContext.Current.Request != null)
						if (HttpContext.Current.Request.ServerVariables != null)
							ip = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];

				return ip;
			}
		}
	}
}